package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 *获取客户群详情响应对象
 * @author: liukunlong
 * @date: 2021-03-05 10:01
 */
public class GroupChatGetResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * group_chat : {"chat_id":"wrOgQhDgAAMYQiS5ol9G7gK9JVAAAA","name":"销售客服群","owner":"ZhuShengBen","create_time":1572505490,"notice":"文明沟通，拒绝脏话","member_list":[{"userid":"abel","type":1,"join_time":1572505491,"join_scene":1},{"userid":"sam","type":1,"join_time":1572505491,"join_scene":1},{"userid":"wmOgQhDgAAuXFJGwbve4g4iXknfOAAAA","type":2,"unionid":"ozynqsulJFCZ2z1aYeS8h-nuasdAAA","join_time":1572505491,"join_scene":1}]}
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * groupChat
     */
    @JSONField(name = "group_chat")
    private GroupChatDTO groupChat;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public GroupChatDTO getGroupChat() {
        return groupChat;
    }

    public void setGroupChat(GroupChatDTO groupChat) {
        this.groupChat = groupChat;
    }

    public static class GroupChatDTO {
        /**
         * chatId
         */ /**
         * chat_id : wrOgQhDgAAMYQiS5ol9G7gK9JVAAAA
         * name : 销售客服群
         * owner : ZhuShengBen
         * create_time : 1572505490
         * notice : 文明沟通，拒绝脏话
         * member_list : [{"userid":"abel","type":1,"join_time":1572505491,"join_scene":1},{"userid":"sam","type":1,"join_time":1572505491,"join_scene":1},{"userid":"wmOgQhDgAAuXFJGwbve4g4iXknfOAAAA","type":2,"unionid":"ozynqsulJFCZ2z1aYeS8h-nuasdAAA","join_time":1572505491,"join_scene":1}]
         */

        @JSONField(name = "chat_id")
        private String chatId;
        /**
         * name
         */
        @JSONField(name = "name")
        private String name;
        /**
         * owner
         */
        @JSONField(name = "owner")
        private String owner;
        /**
         * createTime
         */
        @JSONField(name = "create_time")
        private Integer createTime;
        /**
         * notice
         */
        @JSONField(name = "notice")
        private String notice;
        /**
         * memberList
         */
        @JSONField(name = "member_list")
        private List<MemberListDTO> memberList;

        public String getChatId() {
            return chatId;
        }

        public void setChatId(String chatId) {
            this.chatId = chatId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getOwner() {
            return owner;
        }

        public void setOwner(String owner) {
            this.owner = owner;
        }

        public Integer getCreateTime() {
            return createTime;
        }

        public void setCreateTime(Integer createTime) {
            this.createTime = createTime;
        }

        public String getNotice() {
            return notice;
        }

        public void setNotice(String notice) {
            this.notice = notice;
        }

        public List<MemberListDTO> getMemberList() {
            return memberList;
        }

        public void setMemberList(List<MemberListDTO> memberList) {
            this.memberList = memberList;
        }

        public static class MemberListDTO {
            /**
             * userid
             */ /**
             * userid : abel
             * type : 1
             * join_time : 1572505491
             * join_scene : 1
             * unionid : ozynqsulJFCZ2z1aYeS8h-nuasdAAA
             */

            @JSONField(name = "userid")
            private String userid;
            /**
             * type
             */
            @JSONField(name = "type")
            private Integer type;
            /**
             * joinTime
             */
            @JSONField(name = "join_time")
            private Integer joinTime;
            /**
             * joinScene
             */
            @JSONField(name = "join_scene")
            private Integer joinScene;
            /**
             * unionid
             */
            @JSONField(name = "unionid")
            private String unionid;

            public String getUserid() {
                return userid;
            }

            public void setUserid(String userid) {
                this.userid = userid;
            }

            public Integer getType() {
                return type;
            }

            public void setType(Integer type) {
                this.type = type;
            }

            public Integer getJoinTime() {
                return joinTime;
            }

            public void setJoinTime(Integer joinTime) {
                this.joinTime = joinTime;
            }

            public Integer getJoinScene() {
                return joinScene;
            }

            public void setJoinScene(Integer joinScene) {
                this.joinScene = joinScene;
            }

            public String getUnionid() {
                return unionid;
            }

            public void setUnionid(String unionid) {
                this.unionid = unionid;
            }
        }
    }
}
